package utfpr.gang5.hermes.controledepresenca.services.impl;

import java.util.List;

import utfpr.gang5.hermes.controledepresenca.dao.CrudException;
import utfpr.gang5.hermes.controledepresenca.dao.GenericCrud;
import utfpr.gang5.hermes.controledepresenca.pojo.Disciplina;
import utfpr.gang5.hermes.controledepresenca.services.DisciplinaService;

public class HibernateDisciplinaServiceImpl extends GenericCrud<Disciplina> implements
		DisciplinaService {

	public HibernateDisciplinaServiceImpl() {
	}

	@Override
	public Disciplina carregar(Long id) throws CrudException {
		return carregar(Disciplina.class, id);
	}

	@Override
	public List<Disciplina> carregarTodos() throws CrudException {
		return carregarTodos(Disciplina.class);
	}

}
